import request from '@/utils/request'

// 获取报修列表
export function getListOrders(params) {
  return request({
    url: '/api/orders/getList',
    method: 'get',
    params
  })
}
// 订单详情
export function getOrderDetail(params) {
  return request({
    url: '/api/orders/getOrder',
    method: 'get',
    params
  })
}
// 报价提交 订单处理，匹配项目选择维修师
export function dealOrder(data) {
  return request({
    url: '/api/orders/dealOrder',
    method: 'post',
    data
  })
}
// 结算和评价 订单确认
export function confirmationOrder(data) {
  return request({
    url: '/api/orders/confirmationOrder',
    method: 'post',
    data
  })
}
// 订单报价
export function saveOrderPart(data) {
  return request({
    url: '/api/orderPart/saveOrderPart',
    method: 'post',
    data
  })
}
// 订单配件修改
export function updateOrderPart(data) {
  return request({
    url: '/api/orderPart/updateOrderPart',
    method: 'post',
    data
  })
}
